package com.gzsxy.esjy.service.base.dto.response;

/**
 * @author xiaolong
 * @version 1.0
 * @description: 默认响应
 * @date 2021/12/17 20:23
 */
public abstract class AbstractResponse {

    protected  Object data;
    protected int level;
    protected int code;
    protected String msg = "操作成功";
    protected long systemTime = System.currentTimeMillis();

    public AbstractResponse(Object data, int level, int code, String msg) {
        this.data = data;
        this.level = level;
        this.code = code;
        this.msg = msg;
    }

    public AbstractResponse() {
    }


    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public final long getSystemTime(){
        return this.systemTime;
    }
}
